let Movie = require("../models/movie.js");
let target = function(num){
	return new Promise((resolve, reject) => {
		Movie.findOne(num,function(err,data){
			if(err){
				reject({"error": err});
			}else{
				resolve(data);
			}
		});
	});
}
module.exports = target;